package com.example.demo.mongodb;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * @ClassName SysUser
 * @Description:
 * @Author liyunjiang
 * @Date 2020/5/17 15:54
 */
@Data
public class SysUser implements Serializable {
    /**
     *  @Id 这个注解对应mongodb的_id
     */
    @Id
    private String _id;
    private int id;
    private String name;
    private int age;
}
